var Pe=Object.defineProperty;var de=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable;var ne=(e,n,a)=>n in e?Pe(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a,W=(e,n)=>{for(var a in n||(n={}))Le.call(n,a)&&ne(e,a,n[a]);if(de)for(var a of de(n))Fe.call(n,a)&&ne(e,a,n[a]);return e};var V=(e,n,a)=>(ne(e,typeof n!="symbol"?n+"":n,a),a);import{d as ae,r as T,m as E,c as A,a as r,w as c,b as g,o as w,e as b,t as M,f as p,g as se,$ as S,S as Ie,L as be,V as Be,h as Ue,i as Me,D as Ge,l as Je,M as He,j as K,F as pe,k as ge,n as Ve,p as Ke,q as xe,s as ze,u as je,A as Xe}from"./vendor.d0afe1c7.js";const Ye=function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const v of d.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&o(v)}).observe(document,{childList:!0,subtree:!0});function a(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerpolicy&&(d.referrerPolicy=u.referrerpolicy),u.crossorigin==="use-credentials"?d.credentials="include":u.crossorigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(u){if(u.ep)return;u.ep=!0;const d=a(u);fetch(u.href,d)}};Ye();var x;(function(e){e[e.SEARCH_RESULT=0]="SEARCH_RESULT",e[e.RESULT_TARGET_PAGE=1]="RESULT_TARGET_PAGE"})(x||(x={}));var B;(function(e){e[e.OPEN=0]="OPEN",e[e.CLOSE=1]="CLOSE"})(B||(B={}));var qe=ae({props:["maxStep","restStep","appStatus"],setup(e,n){const{emit:a}=n,o=T("123"),u=()=>{if(!o.value)return E.warn("\u8BF7\u8F93\u5165\u95EE\u9898\u7F16\u53F7"),!1;a("toggleAppStatus")},d=v=>{o.value=v.target.value};return window.__setTopic=v=>{o.value=v},window.__getTopic=()=>o.value,{toggleAppStatus:u,APP_STATUS:B,topicInput:o,onTopicInputChange:d}}}),ve=(e,n)=>{const a=e.__vccOpts||e;for(const[o,u]of n)a[o]=u;return a};const We={style:{display:"flex","align-items":"center"}},Ze=b(" \xA0\xA0 "),Qe=b(" \xA0\xA0 ");function et(e,n,a,o,u,d){const v=g("a-tag"),$=g("a-input"),y=g("a-switch"),_=g("a-statistic"),f=g("a-row"),O=g("a-divider"),D=g("a-page-header");return w(),A("div",null,[r(D,{title:"\u8BB0\u5F55\u5DE5\u5177","sub-title":"\u8F85\u52A9\u8BB0\u5F55\u641C\u7D22\u884C\u4E3A"},{tags:c(()=>[r(v,{color:e.appStatus===e.APP_STATUS.OPEN?"green":"grey"},{default:c(()=>[b(M(e.appStatus===e.APP_STATUS.OPEN?"\u8BB0\u5F55\u4E2D":"\u672A\u5F00\u542F"),1)]),_:1},8,["color"])]),extra:c(()=>[p("div",We,[r($,{onChange:e.onTopicInputChange,disabled:e.appStatus===e.APP_STATUS.OPEN,value:e.topicInput,class:"topic-input",placeholder:"\u8F93\u5165\u95EE\u9898\u7F16\u53F7",style:{width:"180px"}},null,8,["onChange","disabled","value"]),Ze,r(y,{checked:e.appStatus===e.APP_STATUS.OPEN,onClick:e.toggleAppStatus},null,8,["checked","onClick"]),Qe,p("span",null,M(e.appStatus===e.APP_STATUS.OPEN?"\u8BB0\u5F55\u4E2D":"\u672A\u5F00\u542F\u8BB0\u5F55"),1)])]),default:c(()=>[r(f,{type:"flex"},{default:c(()=>[r(_,{title:"\u5269\u4F59\u64CD\u4F5C\u6B65\u9AA4",value:`${e.restStep} / ${e.maxStep}`},null,8,["value"])]),_:1}),r(O)]),_:1})])}var tt=ve(qe,[["render",et]]);const nt="http://eroo.club:3001",oe=e=>`${nt}${e}`,at=async e=>(await se.get(`${oe("/search")}?keyword=${e}&engine=bing`)).data,st=async e=>(await se.get(`${oe("/extract/web")}?url=${e}`)).data,ot=async e=>(await se.post(`${oe("/record/action")}`,e)).data,ut=()=>window.getSelection?window.getSelection().toString():document.selection?document.selection.createRange().text:"",lt=(e=Date.now())=>{const n=new Date(e),a=n.getFullYear().toString().padStart(2,"0"),o=(n.getMonth()+1).toString().padStart(2,"0"),u=n.getDate().toString().padStart(2,"0"),d=n.getHours().toString().padStart(2,"0"),v=n.getMinutes().toString().padStart(2,"0"),$=n.getSeconds().toString().padStart(2,"0");return`${a}-${o}-${u} ${d}:${v}:${$}`},fe=()=>Math.random().toString(16).substring(2),h=class{constructor(n,a){V(this,"resultLength",0);V(this,"currentFocusResultIndex",0);if(this.resultLength=S(`.${h.findElementClassName}`).length,this.currentFocusResultIndex=-1,n){const[,o]=h.replaceSearchText(S(n).text(),a);S(`${n}`).html(o)}S.each(S(`.${h.findElementClassName}`),(o,u)=>{S(u).addClass(`${h.findElementClassName}-${o}`),S(u).data("top",S(u)[0].offsetTop),o===S(`.${h.findElementClassName}`).length-1&&S(u).addClass(`${h.findElementClassName}-end`)})}next({elementClassName:n}){this.currentFocusResultIndex=this.currentFocusResultIndex+1,S(`.${h.findElementClassName}`).removeClass(`${h.findElementClassName}-active`);const a=S(`.${h.findElementClassName}-${this.currentFocusResultIndex}`),o=a.data("top");a.addClass(`${h.findElementClassName}-active`),S(`.${n}`)[0].scrollTo(0,o-91),a.hasClass(`${h.findElementClassName}-end`)&&E.info("\u5DF2\u7ECF\u662F\u6700\u540E\u4E00\u4E2A\u4E86")}};let R=h;V(R,"findElementClassName","__find-item"),V(R,"lastFindKeyword",""),V(R,"clearSearchText",n=>{S(`.${h.findElementClassName}`).attr("class",h.findElementClassName);const a=new RegExp(`<span class="${h.findElementClassName}">(.*?)</span>`,"igm");return n.replace(a,"$1")}),V(R,"replaceSearchText",(n,a)=>{h.lastFindKeyword&&(n=h.clearSearchText(n));const o=new RegExp(`${a}`,"igm");if(!o.test(n))return[!1,n];const d=n.replace(o,`<span class="${h.findElementClassName}">${a}</span>`);return h.lastFindKeyword=a,[!0,d]});const rt=["bilibili.com"],it=e=>(e=JSON.parse(JSON.stringify(e)),e.filter(n=>!rt.some(a=>n.href.includes(a)))),Z=100,he="result-content",Q=3,ct=500;var dt=ae({components:{HeaderAction:tt,SearchOutlined:Ie,LeftOutlined:be,VerticalAlignBottomOutlined:Be,VerticalAlignTopOutlined:Ue,VerticalAlignMiddleOutlined:Me,DownOutlined:Ge},setup(){const e=T(B.CLOSE),n=T(""),a=T([]),o=T([]),u=T(Z),d=T(!1),v=T(""),$=T(new R),y=T(""),_=T(0),f=T(0),O=T([]),D=T([]),G=T(""),N=()=>a.value[a.value.length-1]||{},U=()=>N().type===x.RESULT_TARGET_PAGE,P=()=>N().type===x.SEARCH_RESULT,z=()=>JSON.parse(JSON.stringify(o.value.map(t=>t.datas))),k=t=>{var i;t=t||{},console.log(G.value),t.state=W(W({},JSON.parse(JSON.stringify((i=t==null?void 0:t.state)!=null?i:{}))),JSON.parse(JSON.stringify({digests:o.value,content:a.value,keyword:n.value,loading:d.value,findKeyword:v.value,recordStack:O.value,stepCount:u.value,curResultChunk:_.value,curTargetPageResultChunk:f.value,topic:window.__getTopic(),appStatus:e.value}))),t.undo=t.undo||(({op:l})=>{const{state:s}=l;o.value=s.digests,a.value=s.content,n.value=s.keyword,d.value=s.loading,v.value=s.findKeyword,O.value=s.recordStack,u.value=s.stepCount,_.value=s.curResultChunk,f.value=s.curTargetPageResultChunk,G.value=s.topic,window.__setTopic(s.topic),e.value=s.appStatus}),D.value.push(t)},Y=()=>{if(!D.value.length){E.info("\u6CA1\u6709\u53EF\u4EE5\u64A4\u9500\u7684\u6B65\u9AA4");return}if(D.value.length===1){E.info("\u5DF2\u7ECF\u662F\u6700\u524D\u4E00\u6B65\u4E86");return}const t=D.value.pop();t==null||t.undo({op:t})},L=(t=-1)=>{u.value=u.value+t,u.value<=0&&(q(),E.info("\u64CD\u4F5C\u6B65\u9AA4\u8FBE\u5230\u4E0A\u9650\uFF0C\u81EA\u52A8\u7ED3\u675F\u672C\u6B21\u6570\u636E\u6536\u96C6"))},ee=()=>{d.value=!0},m=()=>{d.value=!1},H=()=>{a.value.pop()},j=()=>{var i,l,s,I,C;const t=N();return{keyword:n.value,triggerAt:Date.now(),stackLength:a.value.length,step:Z-u.value,traceId:y.value,currentPageInfo:{title:(l=(i=t==null?void 0:t.data)==null?void 0:i.title)!=null?l:"",type:(s=t==null?void 0:t.type)!=null?s:"",href:(C=(I=t==null?void 0:t.data)==null?void 0:I.href)!=null?C:"",scrollTop:S(`.${he}`).scrollTop()||0}}},me=()=>P()?te():le(),F=(t,i={})=>{O.value.push(W({action:t,details:i,pageContentInViewport:me(),digests:z(),operateStack:D.value},j()))},Se=async()=>{k(),ee();try{const t=await at(n.value);m(),a.value=[],t.data=it(t.data),a.value.push({type:x.SEARCH_RESULT,data:t.data}),_.value=0,L(),F("PRESS_SEARCH",{keyword:n.value,result:t.data})}catch{}},ue=t=>{const i=_.value*Q,l=i+Q;for(let s=i;s<l;s++)t(s)},Ce=()=>JSON.parse(JSON.stringify(N())),te=()=>{const t=[],i=N();return ue(l=>{i.data[l]&&t.push(i.data[l])}),t},Ee=()=>JSON.parse(JSON.stringify(te())),ye=async t=>{k(),d.value=!0;const i=await st(t);if(d.value=!1,i.code===0){const l=Je.exports.chunk(S(`<div>${i.data.html}</div>`.replace(/<\/(div|p)>/gim,"</div>!!--break-line--!!")).text().replace(/\s+/gim," ").replace(/<\/?.+?>/gim," ").replace(/[\r\n]/gim,`
`).replace(/!!--break-line--!!/gim,"<br />"),ct).map(s=>[...new Set(s.join("").split("<br />"))].join("<br />"));a.value.push({type:x.RESULT_TARGET_PAGE,data:{html:l,href:i.data.href}}),f.value=0,L(),F("LOAD_PAGE_DETAIL",{href:t,pageMainContent:l})}else E.error(i.message)},le=(t,i=!0)=>{const l=N();if(!l.data)return;const s=l.data.html[t||f.value];try{if(!i)return S.trim(S(`<div>${s}</div>`).text())}catch(I){console.error(I)}return S.trim(s)},Te=t=>(k(),t=t||ut(),t?U()?(o.value.push({datas:[{title:`${lt()}`,desc:t,chunkIndex:f.value}],checked:!1}),L(),F("ADD_DIGEST",{text:t}),!0):(E.info("\u8BF7\u5728\u5185\u5BB9\u8BE6\u60C5\u9875\u6807\u6CE8"),!1):(E.info("\u65E0\u9009\u4E2D\u5185\u5BB9"),!1)),re=()=>{a.value=[],n.value="",o.value=[],d.value=!1,v.value="",O.value=[],$.value=new R,y.value="",u.value=Z,G.value=""},ke=()=>{He.confirm({okText:"\u786E\u8BA4\u91CD\u7F6E",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u91CD\u7F6E\u5417\uFF1F",onOk(){re()}})},q=()=>{if(k(),e.value===B.OPEN){e.value=B.CLOSE,F("RECORD_CLOSE",{digests:z()}),E.success("\u6570\u636E\u5DF2\u8BB0\u5F55\u6210\u529F");const t={topic:G.value,userAgent:navigator.userAgent,actions:O.value,digests:o.value,tractId:y.value,createdAt:Date.now()};return ot(t),re(),t}else e.value=B.OPEN,y.value=`${fe()}${fe()}`,G.value=window.__getTopic(),F("RECORD_START",{})},Ae=()=>{if(P()){if(_.value<=0){E.info("\u5DF2\u7ECF\u5728\u9876\u7AEF\u4E86");return}k(),_.value=_.value-1}else if(U()){if(f.value<=0){E.info("\u5DF2\u7ECF\u5728\u9876\u7AEF\u4E86");return}k(),f.value=f.value-1}L(),F("TRIGGER_SCROLL_UP"),setTimeout(()=>{$.value=new R})},we=()=>{const t=N();return P()?Math.ceil(t.data.length/Q)-1:U()?t.data.html.length:0},Oe=()=>{const t=N();if(P()){if(_.value>=Math.ceil(t.data.length/Q)-1){E.info("\u6700\u540E\u4E00\u9875\u4E86");return}k(),_.value=_.value+1}else if(U()){if(f.value>=t.data.html.length-1){E.info("\u6700\u540E\u4E00\u9875\u4E86");return}k(),f.value=f.value+1}L(),F("TRIGGER_SCROLL_DOWN"),setTimeout(()=>{$.value=new R})},Re=()=>{if(P()){if(_.value===0){E.info("\u5DF2\u7ECF\u5728\u9876\u7AEF\u4E86");return}k(),_.value=0}else if(U()){if(f.value===0){E.info("\u5DF2\u7ECF\u5728\u9876\u7AEF\u4E86");return}k(),f.value=0}L(),F("TRIGGER_SCROLL_TO_TOP")},Ne=()=>{k(),H(),L(),F("PAGE_GO_BACK")},$e=()=>{const t=JSON.parse(JSON.stringify(N()));if(P())ue(i=>{const l=t.data[i],[s,I]=R.replaceSearchText(l.title,v.value),[C,J]=R.replaceSearchText(l.summary,v.value);l.title=I,l.summary=J});else if(U()){console.log(JSON.parse(JSON.stringify(t)));const i=t.data.html[f.value],[l,s]=R.replaceSearchText(i,v.value);t.data.html[f.value]=s}H(),a.value.push(t),setTimeout(()=>{$.value=new R})},De=t=>{n.value=t},ie=t=>{window.__setTopic(t)},ce={CONTENT_TYPE:x,open:()=>e.value===B.OPEN?!1:(q(),!0),over:()=>{if(e.value===B.CLOSE)return!1;const t=q();return JSON.parse(JSON.stringify(t))},setTopic:ie,findKeyword:v,keyword:n,setKeyword:De,search:Se,find:$e,content:a,getContentStackTop:N,popContentStack:H,getCurrentResultChunkList:te,getCurrentResultChunkListDeep:Ee,getCurTargetPageResultChunkText:le,getPageContent:ye,addDigest:Te,digests:o,digestDescGetter:t=>t.map(i=>i.desc).join(""),mergeDigest:(...t)=>{if(t.forEach(C=>{o.value[C]&&(o.value[C].checked=!0)}),o.value.reduce((C,J)=>J.checked?C+1:C,0)<=1)return E.info("\u8BF7\u9009\u62E9\u4E24\u4E2A\u4EE5\u4E0A\u7684\u6458\u8981\u8FDB\u884C\u5408\u5E76"),!1;k();let l;const s=[],I=z();for(let C=0;C<o.value.length;C++){const J=o.value[C];J.checked&&(s.push(C),l?l.datas=[...l.datas,...J.datas]:l=J),J.checked=!1}for(let C=s.length-1;C>=1;C--)o.value.splice(s[C],1);return L(),F("MERGE_DIGEST",{merges:s,before:I,after:z()}),!0},rmDigest:t=>{const i=o.value.findIndex(l=>l===t);o.value.splice(i,1)},changeDigestIndex:(t,i)=>{const l=o.value.findIndex(I=>I===t),s=o.value[l];if(l===0){E.info("\u5DF2\u7ECF\u5728\u6700\u524D\u4E86");return}if(l===o.value.length-1){E.info("\u5DF2\u7ECF\u5728\u6700\u540E\u4E86");return}o.value.splice(l,1),o.value.splice(l+i,0,s)},getDigestsValue:()=>JSON.parse(JSON.stringify(o.value)),stepCount:u,MAX_STEP_COUNT:Z,APP_STATUS:B,appStatus:e,toggleAppStatus:q,scrollUp:Ae,scrollDown:Oe,scrollToTop:Re,doBack:Ne,loading:d,findNext:()=>{$.value.next({elementClassName:he})},curResultChunk:_,getCurrentResultDeepClone:Ce,curTargetPageResultChunk:f,getCurPageChunkSize:we,isResultContentPage:U,isSearchResultPage:P,reset:ke,undo:Y,coverActions:t=>{const i=JSON.parse(JSON.stringify(t));i.forEach(l=>{l.undo=()=>{const s=l.state;console.log("---"),console.log(s.topic),ie(s.topic),o.value=s.digests,a.value=s.content,n.value=s.keyword,d.value=s.loading,v.value=s.findKeyword,O.value=s.recordStack,u.value=s.stepCount,_.value=s.curResultChunk,f.value=s.curTargetPageResultChunk,G.value=s.topic,setTimeout(()=>{e.value=s.appStatus})}}),D.value=i,Y()},ops:D};return window.__operation=ce,ce}});const X=e=>(Ke("data-v-388c5faa"),e=e(),xe(),e),pt={class:"main-wrap"},gt={key:0,class:"overlay"},vt={style:{"margin-top":"-8px",display:"flex","justify-content":"space-between"}},ft=b(" \xA0 "),ht={style:{"margin-right":"12px"}},_t=b("\u64A4\u9500"),mt=b(" \xA0 "),St=b("\u91CD\u7F6E"),Ct={class:"content-container"},Et={class:"left"},yt={style:{"white-space":"nowrap",display:"flex","align-items":"center"}},Tt=X(()=>p("span",null,"\u4E0B\u4E00\u4E2A",-1)),kt=X(()=>p("span",null,"\u5411\u4E0A\u7FFB\u9875",-1)),At=X(()=>p("span",null,"\u5411\u4E0B\u7FFB\u9875",-1)),wt={style:{"margin-right":"8px"}},Ot={key:0},Rt={key:1},Nt=X(()=>p("span",null,"\u56DE\u5230\u9876\u7AEF",-1)),$t={class:"result-content"},Dt={key:0},Pt={class:"result-item"},Lt={class:"result-item-title"},Ft=["onClick","innerHTML","data-url"],It=["innerHTML"],bt={key:0},Bt={key:1,style:{width:"717px"}},Ut=["innerHTML"],Mt={key:2},Gt=X(()=>p("div",{class:"center content-tip"}," \u6682\u65E0\u5185\u5BB9 ",-1)),Jt=[Gt],Ht={class:"right"},Vt=b("\u5C06\u9009\u4E2D\u5185\u5BB9\u6DFB\u52A0\u5230\u6458\u8981"),Kt=b("\u5408\u5E76\u6458\u8981"),xt={style:{position:"relative"}},zt={style:{position:"absolute",left:"-24px"}};function jt(e,n,a,o,u,d){const v=g("header-action"),$=g("LeftOutlined"),y=g("a-button"),_=g("a-input-search"),f=g("DownOutlined"),O=g("a-tooltip"),D=g("a-divider"),G=g("VerticalAlignTopOutlined"),N=g("VerticalAlignBottomOutlined"),U=g("VerticalAlignMiddleOutlined"),P=g("a-card"),z=g("a-checkbox"),k=g("a-list-item-meta"),Y=g("a-list-item"),L=g("a-list"),ee=g("a-spin");return w(),A("div",pt,[r(v,{"max-step":e.MAX_STEP_COUNT,"rest-step":e.stepCount,"app-status":e.appStatus,onToggleAppStatus:e.toggleAppStatus},null,8,["max-step","rest-step","app-status","onToggleAppStatus"]),p("div",{class:"op-wrap",style:Ve(e.appStatus===e.APP_STATUS.CLOSE?"opacity: .3;":"")},[e.appStatus===e.APP_STATUS.CLOSE?(w(),A("div",gt)):K("",!0),p("div",vt,[p("div",null,[r(y,{type:"link",disabled:!e.content.length,size:"large",onClick:e.doBack},{icon:c(()=>[r($)]),default:c(()=>[b(" \u8FD4\u56DE("+M(e.content.length)+") ",1)]),_:1},8,["disabled","onClick"]),ft,r(_,{class:"keyword-input",placeholder:"\u641C\u7D22\u5173\u952E\u8BCD",size:"large","enter-button":"",value:e.keyword,"onUpdate:value":n[0]||(n[0]=m=>e.keyword=m),onSearch:e.search},null,8,["value","onSearch"])]),p("div",ht,[r(y,{onClick:e.undo},{default:c(()=>[_t]),_:1},8,["onClick"]),mt,r(y,{onClick:e.reset,type:"dashed",danger:"",ghost:""},{default:c(()=>[St]),_:1},8,["onClick"])])]),r(ee,{spinning:e.loading},{default:c(()=>[p("div",Ct,[p("div",Et,[p("div",null,[r(P,{title:"\u6D4F\u89C8\u5185\u5BB9",class:"contents"},{extra:c(()=>[p("div",yt,[r(_,{placeholder:"\u5185\u5BB9\u67E5\u627E",value:e.findKeyword,"onUpdate:value":n[1]||(n[1]=m=>e.findKeyword=m),style:{width:"150px","margin-right":"12px"},onSearch:e.find},null,8,["value","onSearch"]),r(O,{placement:"top"},{title:c(()=>[Tt]),default:c(()=>[r(y,{onClick:n[2]||(n[2]=m=>e.findNext())},{icon:c(()=>[r(f)]),_:1})]),_:1}),r(D,{type:"vertical"}),r(O,{placement:"top"},{title:c(()=>[kt]),default:c(()=>[r(y,{style:{"margin-right":"8px"},onClick:e.scrollUp},{icon:c(()=>[r(G)]),_:1},8,["onClick"])]),_:1}),r(O,{placement:"top"},{title:c(()=>[At]),default:c(()=>[r(y,{style:{"margin-right":"8px"},onClick:e.scrollDown},{icon:c(()=>[r(N)]),_:1},8,["onClick"])]),_:1}),p("div",wt,[e.isSearchResultPage()?(w(),A("span",Ot,M(e.curResultChunk+1)+"/"+M(e.getCurPageChunkSize()+1),1)):K("",!0),e.isResultContentPage()?(w(),A("span",Rt,M(e.curTargetPageResultChunk+1)+"/"+M(e.getCurPageChunkSize()),1)):K("",!0)]),r(O,{placement:"top"},{title:c(()=>[Nt]),default:c(()=>[r(y,{onClick:e.scrollToTop},{icon:c(()=>[r(U)]),_:1},8,["onClick"])]),_:1})])]),default:c(()=>[p("div",$t,[e.isSearchResultPage()?(w(),A("div",Dt,[(w(!0),A(pe,null,ge(e.getCurrentResultChunkList(),(m,H)=>(w(),A("div",null,[p("div",Pt,[p("span",Lt,[p("strong",{class:ze(`result-item-index-${H}`),onClick:j=>e.getPageContent(m.mdurl||m.href),innerHTML:m.title,"data-url":m.mdurl||m.href},null,10,Ft)]),p("div",{class:"result-item-summary",innerHTML:m.summary||m.rich},null,8,It)])]))),256)),e.getContentStackTop().data.length?K("",!0):(w(),A("div",bt," \u65E0\u641C\u7D22\u7ED3\u679C "))])):K("",!0),e.isResultContentPage()?(w(),A("div",Bt,[p("div",{class:"content-container-element",style:{width:"717px","word-break":"break-all","white-space":"pre-wrap"},innerHTML:e.getCurTargetPageResultChunkText()},null,8,Ut)])):K("",!0),e.content.length?K("",!0):(w(),A("div",Mt,Jt))])]),_:1})])]),p("div",Ht,[r(P,{title:"\u6458\u8981",class:"summaries"},{extra:c(()=>[r(y,{onClick:e.addDigest,type:"primary",style:{"margin-right":"4px"}},{default:c(()=>[Vt]),_:1},8,["onClick"]),r(y,{onClick:e.mergeDigest},{default:c(()=>[Kt]),_:1},8,["onClick"])]),default:c(()=>[p("div",null,[r(L,{"item-layout":"horizontal","data-source":e.digests},{renderItem:c(({item:m,index:H})=>[r(Y,null,{actions:c(()=>[r(z,{checked:m.checked,"onUpdate:checked":j=>m.checked=j},null,8,["checked","onUpdate:checked"])]),default:c(()=>[r(k,{description:e.digestDescGetter(m.datas)},{title:c(()=>[p("div",xt,[p("span",zt,M(H+1),1),p("span",null,[(w(!0),A(pe,null,ge(m.datas,j=>(w(),A("div",null,M(j.title),1))),256))])])]),_:2},1032,["description"])]),_:2},1024)]),_:1},8,["data-source"])])]),_:1})])])]),_:1},8,["spinning"])],4)])}var Xt=ve(dt,[["render",jt],["__scopeId","data-v-388c5faa"]]);const Yt=p("div",{class:"bg"},null,-1),qt=ae({setup(e){return(n,a)=>(w(),A("div",null,[Yt,r(Xt)]))}});const _e=je(qt);_e.use(Xe);_e.mount("#app");
